/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.garethc.LSP.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.garethc.LSP.violation.model.Rectangle;
import za.ac.cput.garethc.LSP.violation.model.Square;

/**
 *
 * @author Gareth
 */
@Configurable
public class LSPConfig {
    @Bean (name = "rect")
    private static Rectangle getNewRectangle()
	{
		return new Rectangle();
	}
    
    @Bean (name = "square")
    private static Rectangle getNewSquare()
	{
		return new Square();
	}

}
